package com.example.locationreport.locationreport.global;

import com.example.locationreport.locationreport.bean.log.LoginParamBean;
import com.example.locationreport.locationreport.db.Locations;
import com.example.locationreport.locationreport.bean.VehicleInfoBean;
import com.example.locationreport.locationreport.utils.JsonUtils;

import java.util.LinkedList;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * author : King
 * date   : 2023/11/2222:52
 * desc   :
 */
public class ConstantInfo {

    // 车辆信息
    public static VehicleInfoBean VehicleInfoBean;

    // 是否连续充电
    public static boolean IsBattery;

    // 是否为重启
    public static boolean IsRestart;

    // 告警语音是否在播放中
    public static boolean IsMQTTSpeaking;
    // 消息缓存
    public static BlockingDeque<String> MQTTQueue = new LinkedBlockingDeque<>();

    // 在线数据是否上传中
    public static boolean IsOnlineLocationUploading;

    // 在线其他数据是否上传中
    public static boolean IsOnlineOtherUploading;
    // 在线数据
    public static LinkedList<Locations> OnlineLocationLinkedList = new LinkedList<>();

    // 在线其他数据
    public static LinkedList<String> OnlineOtherLinkedList = new LinkedList<>();

    // 登录账号密码
    public static String LOGIN_VALUE = JsonUtils.parseBeanToJson(new LoginParamBean());

    // 用户Token
    public static String TOKEN = "";

    public static String ZIP_PATH = "/sdcard/UploadFile.zip";
    public static boolean isUpload;

}
